<template>
<div class="cover">
<img :src="proxy.globalInfo.imageUrl+cover" v-if="cover">
<img v-else src="../assets/yelloPeople.jpg">
</div>
</template>

<script setup>
import { getCurrentInstance } from 'vue';
const props=defineProps({
    cover:{
        type:String,
    }
})
const {proxy} = getCurrentInstance();



</script>
<style lang="scss">

.cover{
    background: #ddd;
    display: flex;
    align-items: center;
    width: 60px;
    height: 60px;
    overflow: hidden;
    justify-content: center;
    img{
        width: 100%;
    }
}
</style>